<%--
  Created by IntelliJ IDEA.
  User: zheng
  Date: 2021/6/30
  Time: 0:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>芜湖起飞 - 个人中心</title>
    <link rel="icon" type="image/png" sizes="16px" href="${pageContext.request.contextPath}/statics/images/icon.png"/>
    <script src="${pageContext.request.contextPath}/js/jquery-3.6.0.min.js"></script>
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/psinfo.css"/>
</head>
<body>
<div class="container-fluid">
    <div class="row bg">
        <div class="sidebar col-lg-2">
            <img src="${pageContext.request.contextPath}/image/icon-big.png" width="200px" class="img-responsive center-block"/>
            <ul id="main-nav" class="nav nav-tabs nav-stacked">
                <li><a href="${pageContext.request.contextPath}/features/meals">自主选餐</a></li>
                <li><a href="#">随心选座</a></li>
                <li><a href="#">个人信息</a></li>
                <li><a href="${pageContext.request.contextPath}">返回首页</a></li>
            </ul>
            <p class="welcome text-center">
                欢迎您，${sessionScope.user.user_phone}
                <br/>
                你的机票订单是：${ticket.fo_no}
            </p>
        </div>
        <div class="personalinfo">
            <h2 class="pscter">个人信息一览</h2>
            <table class="information col-lg-offset-3 col-lg-4 ">
                <colgroup>
                    <col style="background-color: #caefff;width:160px;"/>
                </colgroup>
                <tr>
                    <td>手机号码</td>
                    <td>${sessionScope.user.user_phone}</td>
                </tr>
                <tr>
                    <td>电子邮箱</td>
                    <td>${sessionScope.user.user_email}</td>
                </tr>
                <tr>
                    <td>机票订单</td>
                    <td>${ticket.fo_no}</td>
                </tr>
                <tr>
                    <td>航班号</td>
                    <td>${ticket.fo_flight.flight_no}</td>
                </tr>
                <tr>
                    <td>餐饮预定</td>
                    <td>${meal}</td>
                </tr>
                <tr>
                    <td>餐饮价格</td>
                    <td>${mealPrice}</td>

                </tr>
                <tr>
                    <td>选座信息</td>
                    <td>第${seat.so_seat_no_row}行${seat.so_seat_no_col}列</td>
                </tr>
                <tr>
                    <td>机票价格</td>
                    <td>${ticket.fo_flight.flight_price}元</td>
                </tr>
                <tr>
                    <td>性别</td>
                    <c:choose>
                        <c:when test="${sessionScope.user.user_sex == 0}">
                            <td>男</td>
                        </c:when>
                        <c:when test="${sessionScope.user.user_sex == 1}">
                            <td>女</td>
                        </c:when>
                    </c:choose>
                </tr>
                <tr>
                    <td>乘客类型</td>
                    <c:choose>
                        <c:when test="${sessionScope.user.user_special == 1}">
                            <td>正常乘客</td>
                        </c:when>
                        <c:when test="${sessionScope.user.user_special == 2}">
                            <td>残疾人士</td>
                        </c:when>
                        <c:when test="${sessionScope.user.user_special == 3}">
                            <td>孕妇</td>
                        </c:when>
                    </c:choose>
                </tr>
            </table>
        </div>
    </div>
</div>


<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
</body>
</html>